/*   Copyright (C) 2008  Jeroen v. Schagen & Youri Lima
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

using System;

namespace Domain
{
    public class Player
    {
        // Player
        private string name;

        // Account
        private Account account;

        // Stats
        private int health;

        // Position
        private int x;
        private int y;
        private int z;

        public Player() : this("")
        {
            // Default constructor
        }

        public Player(String name)
        {
            this.name = name;
            this.health = 100;

            this.x = 0;
            this.y = 0;
            this.z = 0;
        }

        // Accessors
        public string Name 
        {
            get { return name; }
            set { name = value; }
        }

        public Account Account
        {
            get { return account; }
            set { account = value; }
        }

        public int Health
        {
            get { return health; }
            set { health = value; }
        }

        public int X
        {
            get { return x; }
            set { x = value; }
        }

        public int Y
        {
            get { return y; }
            set { y = value; }
        }

        public int Z
        {
            get { return z; }
            set { z = value; }
        }

        // Converter
        public override String ToString()
        {
            return this.name;
        }
    }
}